package com.dailyblue.java.project.bookstore.count.util;

public class ResultTool {
    public static <T> JsonResult<T> success(T data) {
        return new JsonResult(data);
    }

    public static <T> JsonResult<T> success(ResultCode resultCode) {
        return new JsonResult(resultCode);
    }

    public static JsonResult fail(ResultCode resultEnum) {
        return new JsonResult(resultEnum);
    }
}
